package com.stdspringboot.mapper;

import com.stdspringboot.entity.Leave;
import com.stdspringboot.vo.LeaveVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ILeaveMapper {

    /**
     * 根据申请人查询
     * @param applicant
     * @return
     */
    public List<LeaveVO> query( @Param("applicant") String applicant);


    public int deleteById(String id);

    public int add(Leave leave);

    public LeaveVO showById(String id);

    public int modifyById(LeaveVO leave);
}
